﻿using DeepEarth.Map.Core;
using DeepEarth.Core;
namespace DeepEarth.Toolkit.Controls
{
    public struct MapViewLite
    {
        public Location Center {get;set;}
        public double ViewportWidth {get;set;}

        public MapViewLite (MapView mapView) : this()
        {
            this.Center = mapView.Center;
            this.ViewportWidth = mapView.ViewportWidth;
        }

        public static bool operator ==(MapViewLite a, MapViewLite b)
        {
            return a.Center == b.Center && a.ViewportWidth == b.ViewportWidth;
        }

        public static bool operator !=(MapViewLite a, MapViewLite b)
        {
            return !(a == b);
        }
    }
}
